class CreateUploadedVitae < ActiveRecord::Migration
  def self.up
    remove_column :users, :vitae
    add_column :documents, :attachable_type, :string
    rename_column :documents, :post_id, :attachable_id
  end

  def self.down
    add_column :users, :vitae, :text
    remove_column :documents, :attachable_type
    rename_column :documents, :attachable_id, :post_id
  end
end
